

#ifndef __FruitCrush__EndPromptView__
#define __FruitCrush__EndPromptView__
#include "cocos2d.h"
#include "LocalizedStringGetter.h"
#include "editor-support/cocostudio/CCSGUIReader.h"
#include "ui/CocosGUI.h"
#include "ShowWinScreen.h"
#include "ShowFailScreen.h"
using namespace cocos2d::ui;
using namespace cocostudio;

USING_NS_CC;

class EndPromptView : public cocos2d::Layer
{
public:
    static cocos2d::Scene* createScene();
    CREATE_FUNC(EndPromptView);
    virtual bool init() override;
    void show(bool success);
protected:

private:

    float win_height;
    float win_width;
    Widget* UI;
    Widget* promptFrame;
    Label* promptTitle;
    Label* promptHint;
    Sprite* promptImg;
    bool mSuccess;
    void dismiss(bool success);
    std::string getTitle(bool success);

};

#endif
